#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

void commandCheck(char* command)
{
	char* start = command;
	char* end = command + strlen(command);
	while (start != end)
	{
		if (*start == '>')
		{
			*start = '\0';
		}
		++start;
	}
}


int main()
{
	char arr[] = "ls -l -a > log.txt";
	char* myargv[64];
	commandCheck(arr);
	myargv[0] = strtok(arr, " ");
	int i = 1;
	while (myargv[i++] = strtok(NULL, " "));


	return 0;
}